package com.huazhen.itrip.biz.service.user;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.huazhen.itrip.beans.pojo.ItripUser;
import com.huazhen.itrip.dao.user.ItripUserMapper;
@Service("itripUserService")
public class ItripUserServiceImpl implements ItripUserService {
	@Autowired 
	private ItripUserMapper itripUserMapper;
	@Override
	public ItripUser getItripUserById(Long id) throws Exception {
		// TODO Auto-generated method stub
		return itripUserMapper.getItripUserById(id);
	}

	@Override
	public List<ItripUser> getItripUserListByMap(Map<String, Object> param) throws Exception {
		// TODO Auto-generated method stub
		return itripUserMapper.getItripUserListByMap(param);
	}

	@Override
	public Integer getItripUserCountByMap(Map<String, Object> param) throws Exception {
		// TODO Auto-generated method stub
		return itripUserMapper.getItripUserCountByMap(param);
	}

	@Override
	public Integer insertItripUser(ItripUser itripUser) throws Exception {
		// TODO Auto-generated method stub
		return itripUserMapper.insertItripUser(itripUser);
	}

	@Override
	public Integer updateItripUser(ItripUser itripUser) throws Exception {
		// TODO Auto-generated method stub
		return itripUserMapper.updateItripUser(itripUser);
	}

	@Override
	public Integer deleteItripUserById(Long id) throws Exception {
		// TODO Auto-generated method stub
		return itripUserMapper.deleteItripUserById(id);
	}

}
